package com.gqb.ssm.pojo;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
 * Created by 小泽玛丽罗 on 2016/9/27.
 */
@Alias("user")
public class User implements Serializable {
    private int id;
    private  String name;
    private  int age;
    private Address address;
    private Grade grade;
    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", address=" + address +
                ", grade=" + grade +
                '}';
    }
}
